
import {reg} from "./validate"
import {useRouter} from "vue-router"
import {mapState,mapMutaions,mapActions} from "vuex"
import { roleList } from "./index"
import { baseURL } from "../api/request"
export const myMixins = {
    data(){
        return{
            reg,
            baseURL
        }
    },
    computed:{
        ...mapState([
            "userInfo"
        ])
    },
    methods:{
        ...mapActions([
            "changeUserInfoac"
        ])
    },
    setup(){
        const gotopage = (name)=>{
            const router = useRouter()
            router.push({name})
        }
        return{
            
            gotopage
        }
    }
}